FROM ubuntu
RUN apt-get update; apt install tzdata
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir /app
WORKDIR /app

COPY cmd/gocron/gocron /app/gocron

RUN chmod +x /app/gocron

EXPOSE 5920

# USER app

ENTRYPOINT ["/app/gocron", "web"]
